<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>卡斯基车务</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../css/common.css" />
    <link rel="stylesheet" href="../../../css/yewuyuan/shouye/yewuyuan_shouye_search.css" />
    <script type="text/javascript" src="../../../lib/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="../../../lib/underscore.js"></script>
    <script type="text/javascript" src="../../../lib/global.js"></script>
    <script type="text/javascript" src="../../../lib/iscroll.js"></script>
    <script type="text/javascript" src="../../../js/zuzhang/banli/zuzhang_banli_search.js"></script>
</head>
<body>
<div class="mainContainer">
    <div class="search">
        <div class="search_input radius_small">
            <img src="../../../images/search.png"/>
            <input type="text" placeholder="搜索" id="searchInput">
        </div>
    </div>
    <div class="order_list" id="being_process">
        <script type="text/template">
            <div>
                <ul>
                    <%for(var i in data){%>
                    <%var item = data[i];%>
                    <%var p1,p2;%>
                    <%if(item.situation === 0 || item.situation === 1){%>
                    <%if(item.state == 2){%>
                    <%  p1 = 'time_limit_pay'; %>
                    <%  p2 = '  待付款';%>
                    <%}else{%>
                    <%if(item.remainTime <= 30){%>
                    <%  p1 = 'time_limit_half'; %>
                    <%}else if(item.remainTime > 30 && item.remainTime <= 60){%>
                    <%  p1 = 'time_limit_hour'; %>
                    <%}else{%>
                    <%  p1 = 'time_limit_normal';%>
                    <%}%>
                    <%  p2 = '进行中';%>
                    <%}%>
                    <%}else if(item.situation === -1){%>
                    <%  p1 = 'time_limit_error';%>
                    <%  p2 = '出问题';%>
                    <%}else if(item.situation === 2){%>
                    <%  p1 = 'time_limit_error';%>
                    <%  p2 = '请求援助';%>
                    <%}else if(item.situation === 3){%>
                    <%  p1 = 'time_limit_error';%>
                    <%  p2 = '超时';%>
                    <%}%>
                    <li class="<%=p1%>">
                        <div class="step_name">
                            <span class="font14 color4e4 step"><%=item.taskName%></span>
                            <span class="font12 colorff6 pick <%=p1%>"><%=p2%></span>
                        </div>
                        <div class="car_information">
                            <span class="font12 color9a9 car1"><%=item.carPlateNum%></span>
                            <span class="font12 color9a9 car2"><%=item.carColor%></span>
                            <span class="font12 color9a9 car3"><%=item.carBrand%></span>
                            <%if(item.situation!=-1){%>
                            <span class="font12 color796 car4" data-time="<%=item.remainTime%>"></span>
                            <%}else{%>
                            <span class="font12 color796 car4">暂停计时</span>
                            <%}%>
                            <span class="font12 color796 car5"><%=item.situation!=-1?'总余:':''%></span>
                        </div>
                        <div class="car_information_1">
                            <span class="font12 color9a9">发动机号:</span>
                            <span class="font12 color9a9"><%=item.carEngineNum%></span>
                            <span class="font12 color9a9 car6">车架号:</span>
                            <span class="font12 color9a9"><%=item.carChassisNum%></span>
                        </div>
                    </li>
                    <%}%>
                </ul>
            </div>
        </script>
    </div>
</div>

</body>
</html>
